package com.test.jdk.streamApi;

import java.util.Arrays;
import java.util.List;
import java.util.stream.Stream;

public class StreamTestFilter {
    public static void main(String[] args) {
        //定义一个流 集合中包含a的元素 filter :过滤器
        Stream.of("a1", "a2", "a3","bb","cc","aa","dd").filter(s -> s.contains("a")).forEach(System.out::println);
    }
}
